
h = "lib\\doc\\examples\\io\\text.text";
hSync = "lib\\doc\\examples\\io\\textSync.text";
j = file.existsSync(h);
jSync = file.existsSync(hSync);

print("file examples 1:exists");
print(file.exists(h));
print(file.exists(h,print));
print(file.existsSync(hSync));

print("file examples 1:create");
print(file.create(h,print));
print(file.createSync(hSync));

print("file examples 1:readAsBytes");
print(file.readAsBytes(j,print));
print(file.readAsBytesSync(jSync));

print("file examples 1:writeAsString");
i="[1,2,30,31,0x31,0x32,0x48]";
print(file.writeAsString(j,i,print));
print(file.writeAsStringSync(jSync,i));

print("file examples 1:readAsString");
print(file.readAsString(j,print));
print(file.readAsStringSync(jSync));

print("file examples 1:readAsLines");
print(file.readAsLines(j,print));
print(file.readAsLinesSync(jSync));

print("file examples 1:rename");
print(file.rename(j,"lib\\doc\\examples\\io\\rename.txt",print));
print(file.renameSync(jSync,"lib\\doc\\examples\\io\\renameSync.txt"));

print("file examples 1:length");
print(file.length(j,print));
print(file.lengthSync(jSync));

print("file examples 1:copy");
print(file.copy(j,"lib\\doc\\examples\\io\\copy.txt",print));
print(file.copySync(jSync,"lib\\doc\\examples\\io\\copySync.txt"));

print("file examples 1:lastAccessed");
print(file.lastAccessed(j,print));
print(file.lastAccessedSync(jSync));

print("file examples 1:setLastAccessed");
print(file.setLastAccessed(j,"2022-08-15T10:47:26.000",print));
print(file.setLastAccessedSync(jSync,"2022-08-15T10:47:26.000"));

print("file examples 1:lastModified");
print(file.lastModified(j,print));
print(file.lastModifiedSync(jSync));

print("file examples 1:setLastModified");
print(file.setLastModified(j,"2022-08-15T10:47:26.000",print));
print(file.setLastModifiedSync(jSync,"2022-08-15T10:47:26.000"));
